

class SessionList;

class SessionPool
{
	public:
		//
		Session* Alloc();
		//
		void Free(Session* pSession);

		static SessionPool* create(size_t nSize, size_t nRecvBufSize, size_t nSendBufSize, size_t nMaxPacketSize);
		//
		~SessionPool();

	private:
		SessionPool(size_t nSize);
	
	private:
		SessionList* list;
		int size;



};

